Developer Documentation
PATH  WebObjects 4.0 Documentation > WebObjects Tools and Techniques

Table of Contents Previous Section

Direct to Web Component Reference

The current release defines five Direct to Web components in the DirectToWeb framework.

D2WQuery

For information on the behavior and appearance of this component see "Query Pages".
Bindings Comments
entityName

The name of the entity for this query (NSString)

displayKeys

The properties of the entity to display for the query (NSArray or NSString)

queryDataSource

The data source for the query

action

The action method to invoke when Query DB is clicked. The queryDataSource is pushed onto your page before this action is invoked.

Example:

myQuery : D2WQuery {
	entityName = "Movie";
	displayKeys = "(title, roles)";
	queryDataSource = displayGroup.dataSource;
	action = displayGroup.fetch;
}

 D2WList

For information on the behavior and appearance of this component see "List Pages and Select Components".
Bindings Comments
entityName

The name of the entity for this list (NSString)

dataSource

The data source for the list

displayKeys

The properties of the entity to display (NSArray or NSString)

Example:

myList : D2WList {
	entityName = "Movie";
	dataSource = displayGroup.dataSource;
	displayKeys = "(title, roles)";
}

 D2WSelect

For information on the behavior and appearance of this component see "List Pages and Select Components".
Bindings Comments
entityName

The name of the entity for this list (NSString)

displayKeys

The properties of the entity to display (NSArray or NSString)

selectedObject

Returns the object associated with the clicked Select button.

dataSource

The data source for the list

action

The action method to invoke when the Select button is clicked. The selectedObject is pushed onto your page before this method is invoked

Example:

mySelect : D2WSelect {
	entityName = "Movie";
	selectedObject = displayGroup.selectedObject;
	dataSource = displayGroup.dataSource;
	action = selectAction;
}

 D2WInspect

For information on the behavior and appearance of this component see "Inspect and Edit Pages".
Bindings Comments
entityName

The name of the entity for this record (NSString)

object

Returns the object associated with the clicked Inspect button.

action

The action method to invoke when the Return button is clicked

displayKeys

The properties of the entity to display (NSArray or NSString)

Example:

myInspect : D2WInspect {
	entityName = "Movie";
	object = displayGroup.selectedObject;
	action = editAction;
}

 D2WEdit

For information on the behavior and appearance of this component see "Inspect and Edit Pages".
Bindings Comments
entityName

The name of the entity for this record (NSString)

object

Returns the object associated with the clicked Edit button.

action

The action method to invoke when the Edit button is clicked

displayKeys

The properties of the entity to display (NSArray or NSString)

Example:

myEdit : D2WEdit {
	entityName = "Movie";
	object = displayGroup.selectedObject;
	action = editAction;
}

Table of Contents Next Section